package com.lxm.common.contants;

public abstract class ESMappingConstants {
    public static final String MAPPING_INDEX = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"blog_id\":{\n" +
            "      \"type\":\"keyword\"\n" +
            "      },\n" +
            "    \"user_id\":{\n" +
            "      \"type\":\"keyword\",\n" +
            "      \"index\":false\n" +
            "    },\n" +
            "    \"img\":{\n" +
            "      \"type\":\"keyword\",\n" +
            "      \"index\":false\n" +
            "    },\n" +
            "    \"title\":{\n" +
            "        \"type\":\"text\",\n" +
            "        \"analyzer\":\"ik_smart\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "    },\n" +
            "    \"content\":{\n" +
            "        \"type\":\"text\",\n" +
            "        \"analyzer\":\"ik_smart\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "    },\n" +
            "    \"blogStatus\":{\n" +
            "        \"type\":\"short\",\n" +
            "        \"index\":false    \n" +
            "    },\n" +
            "    \"likeNum\":{\n" +
            "        \"type\":\"integer\",\n" +
            "        \"index\":false   \n" +
            "    },\n" +
            "    \"commentNum\":{\n" +
            "        \"type\":\"integer\",\n" +
            "        \"index\":false       \n" +
            "    },\n" +
            "    \"blogType\":{\n" +
            "        \"type\":\"short\",\n" +
            "        \"index\":false       \n" +
            "    },\n" +
            "    \"createTime\":{\n" +
            "        \"type\": \"date\",\n" +
            "        \"format\": \"strict_date_optional_time||epoch_millis\"\n" +
            "    },\n" +
            "    \"updateTime\":{\n" +
            "         \"type\":\"date\",\n" +
            "        \"format\": \"strict_date_optional_time||epoch_millis\"\n" +
            "    },\n" +
            "    \"all\":{\n" +
            "      \"type\":\"text\",\n" +
            "      \"analyzer\": \"ik_smart\"\n" +
            "    }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
